package com.yunda.nebula.gateway.service.impl;

import com.yunda.nebula.gateway.service.RequestMatcher;
import org.springframework.stereotype.Service;
import org.springframework.util.AntPathMatcher;

/**
 * \* User: wei.zhang
 * \* Date: 2019/11/5 16:51
 * \* Description:
 * \
 */
@Service
public class DefaultRequestMatcher implements RequestMatcher {

    private String pattern = "/root/**";
    private AntPathMatcher antPathMatcher = new AntPathMatcher();

    @Override
    public boolean match(String url) {
//        return antPathMatcher.match(pattern,url);
        return true;
    }

}
